import { AppCfg } from "./util/defines";
import { Application } from "./Application";

let hasApp = false;

export const kilom = {

    /**
     * 创建kilom服务器应用
     * @param cfg 
     * @returns 
     */
    createApp(cfg: AppCfg) {
        if (hasApp) return;
        hasApp = true;
        return new Application(cfg);
    }

};